public class demo18 {
    public static void main(String[] args) {
        int x = 20;
        int y = 15;
        int z = 19;
        if (x < y) {
            if (y < z) {
                System.out.println(x);
                System.out.println(y);
                System.out.println(z);
            }else if(y>z){
            System.out.println(x);
            System.out.println(z);
            System.out.println(y);

          }
        }
        if (x > y) {
            if (y < z) {
                System.out.println(y);
                System.out.println(z);
                System.out.println(x);
            }else if (y>z){
            System.out.println(z);
            System.out.println(y);
            System.out.println(x);
        }
        }
    }

}
